package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the USR_NOTARIA database table.
 * 
 */
@Entity
@Table(name="USR_NOTARIA")
public class UsrNotaria implements Serializable {
	private static final long serialVersionUID = 1L;
	private UsrNotariaPK id;
	private String cer;
	private String coTipodoc;
	private String deTipodoc;
	private String email;
	private String estado;
	private String numDoc;
	private Date tsUsuaCrea;
	private Cuenta cuenta;

    public UsrNotaria() {
    }


	@EmbeddedId
	public UsrNotariaPK getId() {
		return this.id;
	}

	public void setId(UsrNotariaPK id) {
		this.id = id;
	}
	

	@Column(length=50)
	public String getCer() {
		return this.cer;
	}

	public void setCer(String cer) {
		this.cer = cer;
	}


	@Column(name="CO_TIPODOC", length=2)
	public String getCoTipodoc() {
		return this.coTipodoc;
	}

	public void setCoTipodoc(String coTipodoc) {
		this.coTipodoc = coTipodoc;
	}


	@Column(name="DE_TIPODOC", length=10)
	public String getDeTipodoc() {
		return this.deTipodoc;
	}

	public void setDeTipodoc(String deTipodoc) {
		this.deTipodoc = deTipodoc;
	}


	@Column(length=100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	@Column(length=1)
	public String getEstado() {
		return this.estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}


	@Column(name="NUM_DOC", length=20)
	public String getNumDoc() {
		return this.numDoc;
	}

	public void setNumDoc(String numDoc) {
		this.numDoc = numDoc;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_USUA_CREA")
	public Date getTsUsuaCrea() {
		return this.tsUsuaCrea;
	}

	public void setTsUsuaCrea(Date tsUsuaCrea) {
		this.tsUsuaCrea = tsUsuaCrea;
	}


	//bi-directional many-to-one association to Cuenta
    @ManyToOne
	@JoinColumn(name="CUENTA_ID", nullable=false, insertable=false, updatable=false)
	public Cuenta getCuenta() {
		return this.cuenta;
	}

	public void setCuenta(Cuenta cuenta) {
		this.cuenta = cuenta;
	}
	
}